fix(ui): fail the build if Tailwind emits a utility-less stylesheet#74
Merged
Conversation
Tailwind v4 scans sources with the native @tailwindcss/oxide addon. When that native binary fails to load (e.g. a corrupt platform package on Windows), oxide silently falls back to its WASM build, which scans nothing and emits a utility-less ~13 KB stylesheet instead of ~250 KB — with no error. That ships an entirely unstyled UI, including in Docker images. Add a small build-only Vite plugin (css-size-guard) that throws if the total emitted CSS is under 80 KB, well above the broken case and far below any legitimate output, so the failure is loud instead of silent. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
HoneyAdam
pushed a commit
to HoneyAdam/OwnPilot
that referenced
this pull request
Jun 5, 2026
Document the work merged since v0.6.0 (PRs ownpilot#58-ownpilot#74): the Tailwind oxide WASM-fallback build guard, skills hard-delete on uninstall, the vite.config shadowing fix, and the internal maintainability sweep (dead-code removal, cycle breaking, god-file modularization). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tailwind v4 scans sources with the native
@tailwindcss/oxideaddon. When that native binary fails to load (corrupt platform package on Windows), oxide silently falls back to its WASM build, which scans nothing and emits a utility-less ~13 KB stylesheet instead of ~250 KB — with no error, shipping an entirely unstyled UI (including Docker images).Adds a build-only
css-size-guardVite plugin that throws if total emitted CSS is under 80 KB. Verified: passes on the healthy 247 KB build, fails (exit 1) with a clear message on a small one.🤖 Generated with Claude Code